Editor.Decks.Select = function () {
	var figureSel;
	var impl;
	var shape;
	return {
		init: function (s) {
			shape = s;
			impl = shape.getImplementation();
		},
		remove: function () {
			figureSel.remove();
			delete figureSel;
		},
		draw: function () {
			var delta = Editor.CONFIG.SHAPE_DELTA_SELECTED;
			var x = shape.getX() - delta;
			var y = shape.getY() - delta;
			var w = shape.getWidth() + (delta * 2);
			var h = shape.getHeight() + (delta * 2);
			figureSel = Editor.STATE.CANVAS.rect(x, y, w, h, 5).attr(Editor.CONFIG.SHAPE_ATTR_SELECTED);
		},
		mouseover: function () {},
		mouseout: function () {},
		click: function () {},
		translate: function (deltaX, deltaY) {
			figureSel.translate(deltaX, deltaY);
		},
		toFront: function () {
			figureSel.toFront();
		}
	}
}
